package com.yiban.demo.LoginUser.Service;

import com.yiban.demo.LoginUser.Entity.LoginUserPO;
import com.yiban.demo.LoginUser.Entity.LoginUserVO;

//命名规范xxService
//方法命名要表现实现什么功能
public interface LoginUserService {
    /**
     *
     * @param loginUserPO
     * @return 是否注册成功
     */
    boolean register(LoginUserPO loginUserPO);

    /**
     *
     * @param loginUserVO
     * @return 为空则为失败
     */
    LoginUserPO loginIn(LoginUserVO loginUserVO);
    boolean modifyPassword(LoginUserPO nowUser,String oldPassword,String newPassword);

    boolean sentMailCode(String phoneNumber);

    boolean checkMailCode(String code, String phoneNumber);

    LoginUserPO transToLoginPo(LoginUserVO loginUserVO);

    LoginUserVO transToLoginVo(LoginUserPO loginUserPO);
}
